package com.ny.dao;

import com.ny.entity.Product;

import java.sql.SQLException;
import java.util.List;

public interface ProductDao {
    public List<Product> findAllProduct() throws SQLException;
    public Product findProductById(int productId) throws SQLException;
    boolean updateProductStock(int productId, int number) throws SQLException;
    int updateStudentPassword(int studentId, String studentPassword) throws SQLException;
    int  addProduct(Product product) throws SQLException;
    boolean deleteProduct(int deleteId) throws SQLException;
}
